package com.hafu.view;
import com.hafu.view.GYS.AddGYSFrm;
import com.hafu.view.GYS.ManageGYSFrm;
import com.hafu.view.RuKu.AddRuKuFrm;
import com.hafu.view.RuKu.QueryRuKuFrm;
import com.hafu.view.ShangPin.AddShangPinFrm;
import com.hafu.view.ShangPin.ManageShangPinFrm;
import com.hafu.view.kehu.AddKeHuFrm;
import com.hafu.view.kehu.ManageKeHuFrm;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.GroupLayout;
public class MainFrm extends JFrame {
    public MainFrm() {
        initComponents();
    }
    private void button1(ActionEvent e) {
        KuCunFrm kuCunFrm = new KuCunFrm();
        kuCunFrm.setVisible(true);
    }
    private void button2(ActionEvent e) {
        AddGYSFrm addGYSFrm = new AddGYSFrm();
        addGYSFrm.setVisible(true);
    }
    private void button3(ActionEvent e) {
        ManageGYSFrm manageGYSFrm = new ManageGYSFrm();
        manageGYSFrm.setVisible(true);
    }
    private void button4(ActionEvent e) {
        AddKeHuFrm addKeHuFrm = new AddKeHuFrm();
        addKeHuFrm.setVisible(true);
    }
    private void button5(ActionEvent e) {
        ManageKeHuFrm manageKeHuFrm = new ManageKeHuFrm();
        manageKeHuFrm.setVisible(true);
    }
    private void button6(ActionEvent e) {
        AddShangPinFrm addShangPinFrm = new AddShangPinFrm();
        addShangPinFrm.setVisible(true);
    }
    private void button7(ActionEvent e) {
        ManageShangPinFrm manageShangPinFrm = new ManageShangPinFrm();
        manageShangPinFrm.setVisible(true);
    }
    private void button8(ActionEvent e) {
        AddRuKuFrm addRuKuFrm = new AddRuKuFrm();
        addRuKuFrm.setVisible(true);
    }
    private void button9(ActionEvent e) {
        QueryRuKuFrm queryRuKuFrm = new QueryRuKuFrm();
        queryRuKuFrm.setVisible(true);
    }
    private void initComponents() {
        button1 = new JButton();
        button2 = new JButton();
        button3 = new JButton();
        button4 = new JButton();
        button5 = new JButton();
        button6 = new JButton();
        button7 = new JButton();
        button8 = new JButton();
        button9 = new JButton();
        setTitle("\u4e3b\u754c\u9762");
        Container contentPane = getContentPane();
        button1.setText("\u67e5\u770b\u5e93\u5b58");
        button1.addActionListener(e -> button1(e));
        button2.setText("\u6dfb\u52a0\u4f9b\u5e94\u5546");
        button2.addActionListener(e -> button2(e));
        button3.setText("\u4f9b\u5e94\u5546\u7ba1\u7406");
        button3.addActionListener(e -> button3(e));
        button4.setText("\u6dfb\u52a0\u5ba2\u6237");
        button4.addActionListener(e -> button4(e));
        button5.setText("\u5ba2\u6237\u7ba1\u7406");
        button5.addActionListener(e -> button5(e));
        button6.setText("\u6dfb\u52a0\u5546\u54c1");
        button6.addActionListener(e -> button6(e));
        button7.setText("\u5546\u54c1\u7ba1\u7406");
        button7.addActionListener(e -> button7(e));
        button8.setText("\u6dfb\u52a0\u5165\u5e93");
        button8.addActionListener(e -> button8(e));
        button9.setText("\u67e5\u8be2\u5165\u5e93");
        button9.addActionListener(e -> button9(e));
        GroupLayout contentPaneLayout = new GroupLayout(contentPane);
        contentPane.setLayout(contentPaneLayout);
        contentPaneLayout.setHorizontalGroup(
                contentPaneLayout.createParallelGroup()
                        .addGroup(contentPaneLayout.createSequentialGroup()
                                .addGroup(contentPaneLayout.createParallelGroup()
                                        .addGroup(contentPaneLayout.createSequentialGroup()
                                                .addGap(56, 56, 56)
                                                .addComponent(button1))
                                        .addGroup(contentPaneLayout.createSequentialGroup()
                                                .addGap(68, 68, 68)
                                                .addComponent(button2)
                                                .addGap(48, 48, 48)
                                                .addComponent(button3))
                                        .addGroup(contentPaneLayout.createSequentialGroup()
                                                .addGap(76, 76, 76)
                                                .addComponent(button4)
                                                .addGap(75, 75, 75)
                                                .addComponent(button5))
                                        .addGroup(contentPaneLayout.createSequentialGroup()
                                                .addGap(86, 86, 86)
                                                .addComponent(button6)
                                                .addGap(85, 85, 85)
                                                .addComponent(button7))
                                        .addGroup(contentPaneLayout.createSequentialGroup()
                                                .addGap(115, 115, 115)
                                                .addComponent(button8)
                                                .addGap(76, 76, 76)
                                                .addComponent(button9)))
                                .addContainerGap(517, Short.MAX_VALUE))
        );
        contentPaneLayout.setVerticalGroup(
                contentPaneLayout.createParallelGroup()
                        .addGroup(contentPaneLayout.createSequentialGroup()
                                .addGap(35, 35, 35)
                                .addComponent(button1)
                                .addGap(30, 30, 30)
                                .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                        .addComponent(button2)
                                        .addComponent(button3))
                                .addGap(35, 35, 35)
                                .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                        .addComponent(button4)
                                        .addComponent(button5))
                                .addGap(32, 32, 32)
                                .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                        .addComponent(button6)
                                        .addComponent(button7))
                                .addGap(62, 62, 62)
                                .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                                        .addComponent(button8)
                                        .addComponent(button9))
                                .addContainerGap(150, Short.MAX_VALUE))
        );
        pack();
        setLocationRelativeTo(getOwner());
    }
    private JButton button1;
    private JButton button2;
    private JButton button3;
    private JButton button4;
    private JButton button5;
    private JButton button6;
    private JButton button7;
    private JButton button8;
    private JButton button9;
}